class_name PlayerDM
extends Character

@export var UI_EVENT:UIEvent
@export var inventory:Invertory

func set_hp(value: float):
	#print("set hp in PlayerDM  hp = ", value)
	super.set_hp(value)
	UI_EVENT.hp_info_changed.emit(hp, hp_max)
	
func set_hp_max(value: float):
	#print("set hp_max in PlayerDM")
	super.set_hp_max(value)
	UI_EVENT.hp_info_changed.emit(hp, hp_max)


@export var speed: float = 20.0

